{extend name="common:base" /}


{block name="breadcrumb"}
<h1>
    用户组管理
    <small>用户组管理</small>
</h1>
<ol class="breadcrumb">
    <li><a href="{:url('/admin')}"><i class="fa fa-dashboard"></i> 控制台</a></li>
    <li><a href="{:url('/admin/system_auth')}">用户组管理</a></li>
    <li class="active">添加用户组</li>
</ol>
{/block}


{block name="content"}
<!-- Default box -->

<form action="{:url('/admin/system_auth/add')}" method="post" style="display: block;" id="formDocument">
    <div class="row">
        <!-- left column -->
        <div class="col-md-12">
            <!-- Horizontal Form -->
            <div class="box box-info">
                <div class="box-header with-border">
                    <h3 class="box-title">基本信息</h3>
                </div>
                <!-- /.box-header -->
                <!-- form start -->
                <div class="form-horizontal">
                    <div class="box-body">
                        <div class="form-group">
                            <label class="col-sm-2 control-label">用户组名</label>
                            <div class="col-sm-9">
                                <input type="text" name="title" class="form-control" id="inputTitle" placeholder="用户组名">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">排序</label>
                            <div class="col-sm-9">
                                <input type="number" name="sort" class="form-control" id="inputSort" placeholder="排序">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 control-label">介绍</label>
                            <div class="col-sm-9">
                                <textarea name="desc" class="form-control" id="inputDesc" placeholder="用户组介绍" style="height: 200px;"></textarea>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 control-label">是否启用</label>
                            <div class="col-sm-9">
                                <label><input type="radio" name="status" value="1" class="flat-red" checked> </label> 是
                                <label><input type="radio" name="status" value="0" class="flat-red"> </label> 否
                            </div>
                        </div>

                    </div>
                    <!-- /.box-body -->

                    <!-- /.box-footer -->
                </div>
            </div>
            <!-- /.box -->
        </div>

        <!--/.col (right) -->
        <div class="col-sm-12 p10">
            <div class="submit-box p10">
                <button type="submit" class="btn btn-danger">提交</button>
                <button type="button" class="btn btn-default btn-cancel">取消</button>
            </div>
        </div>

    </div>
</form>
<!-- /.box -->
{/block}
{block name="js"}
<script>
    $("#formDocument").validate({
        rules: {
            title: 'required',
        },
        messages: {
            title: "请输入用户组名字",
        }
    });
</script>
{/block}